<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of End_user_lib
 *
 * @author Administrator
 */
class Provider_user_lib {

  protected $ci;
  public function __construct() {
    $this->ci = & get_instance();
  }

  public function email_forgot_password($email) {
    return true;
  }

  public function email_active_account($params) {
    $this->ci->load->library('sendEmail');
    $send = $this->ci->sendemail->sendEmailByTemplate( array_merge($params, array(
                        'from' => $this->ci->setting_model->item('contact_email'),
                        'to' => $params['email'])), 'active_provider');
    return $send;
  }

}